home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / abs.cfm next >
Encoding:
Text File  |  2001-06-13  |  459 b   |  27 lines

  1. <!--- This example shows how to use the ABS function --->
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6.  
  7. <TITLE>
  8. Abs Example
  9. </TITLE>
  10.  
  11. </HEAD>
  12.  
  13. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  14. <BODY  bgcolor="#FFFFD5">
  15.  
  16. <H3>Abs Example</H3>
  17.  
  18. <P>The absolute value of the following numbers:
  19. 1,3,-4,-3.2,6 is <CFOUTPUT>#Abs(1)#,#Abs(3)#,#Abs(-4)#,#Abs(-3.2)#,#Abs(6)#</CFOUTPUT>
  20.  
  21. <P>The absolute value of a number is the number without its sign.
  22.  
  23.  
  24. </BODY>
  25.  
  26. </HTML>       
  27.